package com.raigor.application.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.raigor.application.mapper.TestScriptMapper;
import com.raigor.application.domain.TestScript;
import com.raigor.application.service.ITestScriptService;

/**
 * 测试脚本Service业务层处理
 *
 * @author ruoyi
 * @date 2021-12-21
 */
@Service
public class TestScriptServiceImpl implements ITestScriptService
{
    @Autowired
    private TestScriptMapper testScriptMapper;

    /**
     * 查询测试脚本
     *
     * @param scriptId 测试脚本主键
     * @return 测试脚本
     */
    @Override
    public TestScript selectTestScriptByScriptId(Long scriptId)
    {
        return testScriptMapper.selectTestScriptByScriptId(scriptId);
    }

    /**
     * 查询测试脚本列表
     *
     * @param testScript 测试脚本
     * @return 测试脚本
     */
    @Override
    public List<TestScript> selectTestScriptList(TestScript testScript)
    {
        return testScriptMapper.selectTestScriptList(testScript);
    }

    /**
     * 新增测试脚本
     *
     * @param testScript 测试脚本
     * @return 结果
     */
    @Override
    public int insertTestScript(TestScript testScript)
    {
        return testScriptMapper.insertTestScript(testScript);
    }

    /**
     * 修改测试脚本
     *
     * @param testScript 测试脚本
     * @return 结果
     */
    @Override
    public int updateTestScript(TestScript testScript)
    {
        return testScriptMapper.updateTestScript(testScript);
    }

    /**
     * 批量删除测试脚本
     *
     * @param scriptIds 需要删除的测试脚本主键
     * @return 结果
     */
    @Override
    public int deleteTestScriptByScriptIds(Long[] scriptIds)
    {
        return testScriptMapper.deleteTestScriptByScriptIds(scriptIds);
    }

    /**
     * 删除测试脚本信息
     *
     * @param scriptId 测试脚本主键
     * @return 结果
     */
    @Override
    public int deleteTestScriptByScriptId(Long scriptId)
    {
        return testScriptMapper.deleteTestScriptByScriptId(scriptId);
    }
}
